Skip to content

Commit

Permalink
sysfs/events : add test for events as exported by sysfs
Browse files Browse the repository at this point in the history
  • Loading branch information
deater committed Jul 5, 2013
1 parent 0e19384 commit dc66739
Show file tree
Hide file tree
Showing 5 changed files with 534 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
5 July 2013
+ Add sysfs test

28 June 2013
+ Add ioctl_flag_group test
+ Add nmi_soft_lockup_test
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ all:
cd generalized_events && make
cd overflow && make
cd record_sample && make
cd sysfs && make
cd validation && make
cd validation_privileged && make
cd fuzzer && make
Expand All @@ -23,6 +24,7 @@ clean:
cd generalized_events && make clean
cd overflow && make clean
cd record_sample && make clean
cd sysfs && make clean
cd validation && make clean
cd validation_privileged && make clean
cd papi && make clean
Expand Down
3 changes: 3 additions & 0 deletions run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ echo "* Checking infrastructure"
echo " + ./validation/get_cache_info"
echo -n " "
./validation/get_cache_info
echo " + ./sysfs/events"
echo -n " "
./sysfs/events

echo
echo "* Checking generalized events"
Expand Down
26 changes: 26 additions & 0 deletions sysfs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
CC = gcc
CFLAGS = -Wall -O2 -I../include
LFLAGS =

all: events


###

../lib/test_utils.o: ../lib/test_utils.c
cd ../lib && make

###

events: events.o ../lib/test_utils.o
$(CC) $(LFLAGS) -o events events.o ../lib/test_utils.o

events.o: events.c
$(CC) $(CFLAGS) -c events.c

###

clean:
rm -f *~ *.o \
events

Loading

0 comments on commit dc66739

Please sign in to comment.