[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sun, 12 Aug 2001 12:54:46 +0200
Pfew, believe it or not, I've spent nearly 3 hours to write this
stupid test case. Digging the whole stuff to figure which macro
are available and what am I allowed to do or not isn't really fun.
It would be nice if tests/README could feature some introductionnary
material, just to give a basic idea of how the testsuite works (a
manual would be better, but I understant that's a lot of work).
Anyway, here is the thing. I won't be surprised if it turn out
that I've used the wrong macros or mechanisms... :)
@@ -1,1 +1,5 @@
+2001-08-12 Alexandre Duret-Lutz <address@hidden>
+ * tests/semantics.at (AC_C_BIGENDIAN): New test.
RCS file: /home/adl/CVSROOT/actmp/tests/semantics.at,v
retrieving revision 18.104.22.168
diff -u -r22.214.171.124 semantics.at
--- tests/semantics.at 11 Aug 2001 19:12:58 -0000 126.96.36.199
+++ tests/semantics.at 11 Aug 2001 22:55:21 -0000
@@ -307,6 +307,40 @@
+# -------------- #
+# AC_C_BIGENDIAN #
+# -------------- #
+# Make sure that AC_C_BIGENDIAN behave the same whether we are
+# cross-compiling or not. Actually, the tests are differents in both
+# case, and the cross-compiling case is allowed to fail (BTW, it might
+# be interesting to replace [:] by [touch at-uendian] to cach systems for
+# which AC_C_BIGENDIAN does fail, just to know if such a system
+# Don't use _AT_CHECK_AC_MACRO here, because we are creating
+# new files and don't want AC_CHECK_ENV to be run.
+AT_CONFIGURE_AC([AC_C_BIGENDIAN([touch at-bendian],[touch at-lendian],[:])])
+rm -f config.hin # So that next run of autoheader is quiet.
+# Use _AT_CHECK_AC_MACRO here, because it use AC_CHECK_ENV and this time
+# we want to make sure that we are not creating a new file (which
+# would indicate a different result from the non cross-compiling case).
+ AC_C_BIGENDIAN([touch at-bendian],[touch at-lendian],[:])])
+# Make sure AC_C_BIGENDIAN with no argument will define WORDS_BIGENDIAN
+AT_CHECK([grep WORDS_BIGENDIAN config.hin], , [ignore])
# ------------------------------ #
# AC_PATH_PROG & AC_PATH_PROGS. #
Alexandre Duret-Lutz <=