You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

51 lines
1.3 KiB

PROJECT = 'llthreads'
INITLAKEFILE()
DEFINES = L{DEFINES,
IF(WINDOWS, 'DLL_EXPORT', '');
IF(not MSVC, 'USE_PTHREAD', '');
}
core = c.shared{PROJECT,
base = 'src',
src = '*.c',
needs = LUA_NEED,
defines = DEFINES,
dynamic = DYNAMIC,
strip = true,
libs = IF(not MSVC, 'pthread');
}
target('build', core)
install = target('install', {
file.group{odir=LIBDIR; src = core };
file.group{odir=J(LIBDIR, PROJECT); src = J('src', 'lua', 'llthreads2'); recurse = true };
file.group{odir=TESTDIR; src = J('test', '*'); recurse = true };
})
target('test', install, function()
-- run_test('test_register_llthreads.lua')
run_test('test_join_timeout.lua')
run_test('test_llthreads.lua')
run_test('test_table_copy.lua')
run_test('test_threads.lua 10')
run_test('test_join_timeout.lua')
run_test('test_join_detach.lua')
run_test('test_join_error.lua')
run_test('test_register_ffi.lua')
run_test('test_logger.lua')
run_test('test_pass_cfunction.lua')
run_test('test_alive.lua')
run_test('test_threads_ex.lua 10')
run_test('test_threads_ex_arg.lua')
run_test('test_threads_ex_opt.lua')
run_test('test_threads_attr.lua')
if not test_summary() then
quit("test fail")
end
end)