From d6c19a6e1a1921de26de77e2f3e6a1eaa19b6e73 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 7 Jun 2001 19:44:37 +0000 Subject: Add in a test for outb (that currently fails) --- test/Makefile | 4 ++-- test/misc/.cvsignore | 1 + test/misc/Makefile | 20 ++++++++++++++++++++ test/misc/outb.c | 9 +++++++++ 4 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 test/misc/.cvsignore create mode 100644 test/misc/Makefile create mode 100644 test/misc/outb.c (limited to 'test') diff --git a/test/Makefile b/test/Makefile index 354d99bb0..611fb19b5 100644 --- a/test/Makefile +++ b/test/Makefile @@ -23,12 +23,12 @@ TOPDIR=../ include $(TOPDIR)Rules.mak +ALL_SUBDIRS = args assert ctype pwd_grp signal silly stdlib string unistd misc ifeq ($(TARGET_ARCH), $(NATIVE_ARCH)) - DIRS = args assert ctype pwd_grp signal silly stdlib string unistd + DIRS = $(ALL_SUBDIRS) else DIRS = endif -ALL_SUBDIRS = args assert ctype pwd_grp signal silly stdlib string unistd all: subdirs diff --git a/test/misc/.cvsignore b/test/misc/.cvsignore new file mode 100644 index 000000000..96ffd8b15 --- /dev/null +++ b/test/misc/.cvsignore @@ -0,0 +1 @@ +outb diff --git a/test/misc/Makefile b/test/misc/Makefile new file mode 100644 index 000000000..5e6ffb504 --- /dev/null +++ b/test/misc/Makefile @@ -0,0 +1,20 @@ +TESTDIR=../ +include $(TESTDIR)/Rules.mak + +TARGETS=outb +all: $(TARGETS) + +outb: outb.c ../testsuite.h Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(TESTCC) + -@ echo "-------" + -@ echo " " + -@ echo "Compiling vs uClibc: " + -@ echo " " + $(TESTCC) $(CFLAGS) -c $< -o $@.o + $(TESTCC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS) + $(STRIPTOOL) -x -R .note -R .comment $@ + ./$@ + -@ echo " " +clean: + rm -f *.[oa] *~ core $(TARGETS) + + diff --git a/test/misc/outb.c b/test/misc/outb.c new file mode 100644 index 000000000..bbe18eaec --- /dev/null +++ b/test/misc/outb.c @@ -0,0 +1,9 @@ +#include + +int main(void) +{ + ioperm(0x340,0x342,1); + outb(0x340,0x0); + exit(0); +} + -- cgit v1.2.3