/* IMPORTS */ 

var file_scandir = import function<vector<string>, string> pxl_lib_file_scandir;
var vector_len   = import function<int, vector> pxl_vec_size;
var puts         = import function<int, string> pxo_string_trace;
var system       = import function<int, string> pxl_lib_proc_system;
var str_len      = import function<int, string> pxl_lib_str_len;

/* ## */ 

vector<string> files = file_scandir(".\\test*.pxl");

int file_count = vector_len( files );
int i = 0;

for ( i = 0 ; i < file_count; i = i + 1 ) {
	
	string fname = files[i];	
	string fchar = fname[ 0 : str_len(fname)-4 ];
	
	puts("Running test " + fchar + "...\n");
	
	system("build " + fchar);
	
};

return 0;
