From b38ddb748be02e1a8d340520c50819f15a78a30c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 27 Jun 2014 21:07:14 +0200 Subject: add ltp package, add more uClibc options to have a wider test range --- package/ltp/patches/patch-runtest_sched | 13 +++++++++++++ .../ltp/patches/patch-testcases_realtime_lib_libstats_c | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 package/ltp/patches/patch-runtest_sched create mode 100644 package/ltp/patches/patch-testcases_realtime_lib_libstats_c (limited to 'package/ltp/patches') diff --git a/package/ltp/patches/patch-runtest_sched b/package/ltp/patches/patch-runtest_sched new file mode 100644 index 000000000..a157cb0af --- /dev/null +++ b/package/ltp/patches/patch-runtest_sched @@ -0,0 +1,13 @@ +--- ltp-full-20140422.orig/runtest/sched 2014-04-23 10:36:54.000000000 +0200 ++++ ltp-full-20140422/runtest/sched 2014-06-27 15:02:00.941026480 +0200 +@@ -6,8 +6,8 @@ pth_str03 pth_str03 + time-schedule01 time-schedule + trace_sched01 trace_sched -c 1 + +-hackbench01 hackbench 50 process 1000 +-hackbench02 hackbench 20 thread 1000 ++hackbench01 hackbench 50 process 500 ++hackbench02 hackbench 20 thread 500 + + sched_cli_serv run_sched_cliserv.sh + # Run this stress test for 2 minutes diff --git a/package/ltp/patches/patch-testcases_realtime_lib_libstats_c b/package/ltp/patches/patch-testcases_realtime_lib_libstats_c new file mode 100644 index 000000000..d35130dc4 --- /dev/null +++ b/package/ltp/patches/patch-testcases_realtime_lib_libstats_c @@ -0,0 +1,16 @@ +from buildroot + +--- ltp-full-20140422.orig/testcases/realtime/lib/libstats.c 2014-04-23 10:37:00.000000000 +0200 ++++ ltp-full-20140422/testcases/realtime/lib/libstats.c 2014-06-27 10:55:59.401744516 +0200 +@@ -46,6 +46,11 @@ + #include + #include + ++#ifdef __UCLIBC__ ++/* 10^x = 10^(log e^x) = (e^x)^log10 = e^(x * log 10) */ ++#define exp10(x) (exp((x) * log(10))) ++#endif /* __UCLIBC__ */ ++ + int save_stats = 0; + + /* static helper functions */ -- cgit v1.2.3