Skip to content

Commit

Permalink
tests: move non-existent to error_returns dir
Browse files Browse the repository at this point in the history
  • Loading branch information
deater committed Oct 11, 2013
1 parent 56a06f8 commit 438eced
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 22 deletions.
3 changes: 2 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
11 October 2013
+ Add tests/errors/e2big
+ Add tests/error_returns/e2big
+ Move non-existent test to tests/error_returns

18 September 2013
+ Fix breakpoint_support test that was broken by too-clever gcc 4.8
Expand Down
8 changes: 4 additions & 4 deletions run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ echo "* Checking basic perf_event functionality"
echo " + $TESTS_DIR/validation/format_id_support"
echo -n " "
$TESTS_DIR/validation/format_id_support
echo " + $TESTS_DIR/validation/non-existent"
echo -n " "
$TESTS_DIR/validation/non-existent
echo " + $TESTS_DIR/validation/breakpoint_support"
echo -n " "
$TESTS_DIR/validation/breakpoint_support
Expand All @@ -86,7 +83,10 @@ echo
echo "* Checking error returns"
echo " + $TESTS_DIR/error_returns/e2big"
echo -n " "
$TESTS_DIR/errors/e2big
$TESTS_DIR/error_returns/e2big
echo " + $TESTS_DIR/error_returns/non-existent"
echo -n " "
$TESTS_DIR/error_returns/non-existent

echo
echo "* Checking overflow functionality"
Expand Down
20 changes: 18 additions & 2 deletions tests/error_returns/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ LFLAGS =
LIB = ../../lib

all: \
e2big
e2big \
non-existent

###

Expand Down Expand Up @@ -36,6 +37,21 @@ e2big.o: e2big.c

###

non-existent: non-existent.o $(LIB)/test_utils.o \
$(LIB)/perf_helpers.o \
$(LIB)/matrix_multiply.o
$(CC) $(LFLAGS) -o non-existent non-existent.o \
$(LIB)/test_utils.o \
$(LIB)/perf_helpers.o \
$(LIB)/matrix_multiply.o

non-existent.o: non-existent.c
$(CC) $(CFLAGS) -c non-existent.c

###


clean:
rm -f *~ *.o \
e2big
e2big \
non-existent
File renamed without changes.
15 changes: 0 additions & 15 deletions tests/validation/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ all: \
get_cache_info \
inherit \
inherit_stat \
non-existent \
offcore_response \
offcore_response_mask \
rdpmc_support \
Expand Down Expand Up @@ -127,19 +126,6 @@ inherit_stat.o: inherit_stat.c

###

non-existent: non-existent.o $(LIB)/test_utils.o \
$(LIB)/perf_helpers.o \
$(LIB)/matrix_multiply.o
$(CC) $(LFLAGS) -o non-existent non-existent.o \
$(LIB)/test_utils.o \
$(LIB)/perf_helpers.o \
$(LIB)/matrix_multiply.o

non-existent.o: non-existent.c
$(CC) $(CFLAGS) -c non-existent.c

###

enable_on_exec: enable_on_exec.o $(LIB)/test_utils.o \
$(LIB)/perf_helpers.o \
$(LIB)/instructions_testcode.o
Expand Down Expand Up @@ -202,7 +188,6 @@ clean:
get_cache_info \
inherit \
inherit_stat \
non-existent \
offcore_response \
offcore_response_mask \
rdpmc_support \
Expand Down

0 comments on commit 438eced

Please sign in to comment.