aboutsummaryrefslogtreecommitdiffstats
path: root/tests/stty (follow)
AgeCommit message (Collapse)AuthorFilesLines
2025-11-02tests: stty: filter out ispeed and ospeed from boolean optionsCollin Funk2-2/+2
* tests/stty/stty-pairs.sh: Also ignore lines starting with ispeed and ospeed. * tests/stty/stty.sh: Likewise. Reported by Bernhard Voelker.
2025-06-22stty: stricter floating point parsingPádraig Brady1-1/+2
* src/stty.c (string_to_baud): Disallow extraneous characters after floating point numbers. * tests/stty/stty-invalid.sh: Add test cases.
2025-06-18tests: stty: adjust tests for arbitary speedsPádraig Brady3-2/+68
* tests/stty/stty-invalid.sh: Adjust to what is now invalid. * tests/stty/stty.sh: Add checks for valid speed variants. * tests/stty/bad-speed.sh: New test to ensure unsupported speeds are diagnosed.
2025-01-20tests: remove use of unprotected 'set'Pádraig Brady1-1/+1
* cfg.mk (sc_prohibit_bare_set): A new syntax check to ensure we protect use of set with '--', so that args beginning with '-' are not interpreted as options, and if no args are present, all existing args are cleared. * tests/cp/symlink-slash.sh: Add -- to unprotected use of set. * tests/ls/ls-time.sh: Likewise. * tests/ls/symlink-slash.sh: Likewise. * tests/mkdir/perm.sh: Likewise. * tests/mkdir/selinux.sh: Likewise. * tests/mkdir/smack-no-root.sh: Likewise. * tests/mkdir/smack-root.sh: Likewise. * tests/mv/part-hardlink.sh: Likewise. * tests/nice/nice.sh: Likewise. * tests/stty/stty-row-col.sh: Likewise.
2025-01-01maint: update all copyright year number rangesPádraig Brady4-4/+4
Update to latest gnulib with new copyright year. Run "make update-copyright" and then... * gnulib: Update included in this commit as copyright years are the only change from the previous gnulib commit. * tests/init.sh: Sync with gnulib to pick up copyright year. * bootstrap: Likewise. * tests/sample-test: Adjust to use the single most recent year.
2024-05-20stty: port test to Alpine LinuxPaul Eggert1-1/+1
* tests/stty/stty.sh: Port to Alpine Linux 3.20.0_rc1, whose musl implementation’s printf invokes ioctl on stdout, so --version does an ioctl.
2024-01-01maint: update all copyright year number rangesPádraig Brady4-4/+4
Update to latest gnulib with new copyright year. Run "make update-copyright" and then... * gnulib: Update included in this commit as copyright years are the only change from the previous gnulib commit. * tests/init.sh: Sync with gnulib to pick up copyright year. * bootstrap: Manually update copyright year, until we fully sync with gnulib at a later stage. * tests/sample-test: Adjust to use the single most recent year.
2023-06-19tests: move tests to a directory per utilitySylvestre Ledru4-0/+314
* cfg.mk: Adjust syntax check exclusion paths. * tests/local.mk: Adjust for renamed tests.
2007-09-15Move all tests from test/{od,sha1sum,shred,stty} to tests/misc/.Jim Meyering4-258/+0
Reflect these renamings: od/od-N misc/od-N od/x8 misc/od-x8 sha1sum/basic-1 misc/sha1sum sha1sum/sample-vec misc/sha1sum-vec shred/exact misc/shred-exact shred/remove misc/shred-remove stty/basic-1 misc/stty stty/invalid misc/stty-invalid stty/row-col-1 misc/stty-row-col * tests/misc/Makefile.am (TESTS): Add the new files. * tests/Makefile.am (SUBDIRS): Remove the dir names. * tests/od, tests/sha1sum, tests/shred, tests/stty: Remove the directories. * configure.ac (AC_CONFIG_FILES): Remove the corresponding Makefile names.
2007-08-25Remove all .cvsignore files from version control.Jim Meyering1-2/+0
2007-07-23Update all copyright notices to use the newer form.Jim Meyering3-15/+9
2007-07-10Change "version 2" to "version 3" in all copyright notices.Jim Meyering3-3/+3
2007-05-22stty: diagnose an invalid hex value in 35-colon commmand-line argumentJim Meyering2-1/+65
* NEWS: Mention this. * src/stty.c (strtoul_tcflag_t, strtoul_cc_t): New functions. (recover_mode): Use those functions (not sscanf), to parse the string robustly. * tests/stty/invalid: New file. Test for the above. * tests/stty/Makefile.am (TESTS): Add invalid. * .x-sc_prohibit_atoi_atof: Don't exempt stty.c from this check. Add tests/stty/invalid so we don't have to obfuscate the comment about sscanf therein. * Makefile.maint (sc_prohibit_atoi_atof): Mention sscanf in the diagnostic, too.
2007-02-24Remove the "gnits" option; it prohibits my using "+" as a versionJim Meyering1-2/+0
string suffix, and all it does (beyond the default "gnu" option) is to _require_ the THANKS file. * configure.ac (AM_INIT_AUTOMAKE): Remove it. Remove all AUTOMAKE_OPTIONS settings in Makefile.am files. * tests/chgrp/Makefile.am, tests/chmod/Makefile.am: * tests/chown/Makefile.am, tests/cp/Makefile.am: * tests/du/Makefile.am, tests/expr/Makefile.am: * tests/factor/Makefile.am, tests/general/Makefile.am: * tests/install/Makefile.am, tests/ln/Makefile.am: * tests/ls/Makefile.am, tests/mkdir/Makefile.am: * tests/mv/Makefile.am, tests/readlink/Makefile.am: * tests/rm/Makefile.am, tests/rmdir/Makefile.am: * tests/seq/Makefile.am, tests/stty/Makefile.am: * tests/tee/Makefile.am, tests/touch/Makefile.am:
2007-01-13Put CU_TEST_NAME in the environment for each test run by "make check".Jim Meyering1-0/+1
* Transform all Makefile.am files so that when running "make check", CU_TEST_NAME is set to the name of the test. This is so that when I run valgrind-enabled (--log-file-qualifier=CU_TEST_NAME) "make check" on the entire package it is more convenient to map a leak or error found in a valgrind log file back to the offending test. Use this command: (echo tests/Makefile.am.in; find tests -name Makefile.am) \ |xargs perl -pi -e '/^(\s*)PATH=...VG_PATH_PREFIX/ and ' \ -e 'print $1,q|CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst |,"\\\n"'
2006-09-18* tests/stty/row-col-1: Rewrite to avoid temporary file that isPaul Eggert1-5/+3
sometimes left behind if the test is skipped or interrupted.
2006-08-22* aclocal.m4, config.hin, configure:Paul Eggert1-0/+1
Remove from CVS, since ./bootstrap generates them automatically. * .cvsignore: Add INSTALL, Makefile.in, *.cache, *.lineno, *.log. Remove more-specific entries. This catches files like configure.lineno. * man/.cvsignore: Add Makefile.in. * src/.cvsignore: Add Makefile.in. Remove .version, dir.c, install, mvdir, stamp-v, vdir.c, version.c. For .cvsignore file under the tests directory: Add Makefile.in. Sort entries if necessary. Remove *.I, *.E, *.X, *.O, *-tests, build-script, mk-script if they're never created in this directory. * build-aux/.cvsignore: New file. * doc/.cvsignore: Add Makefile.in, coreutils.html, coreutils.pdf, coreutils.ps, coreutils.tps. Remove coreutils.cm (dunno what it is, but the makefile doesn't mention it). Remove coreutils.info as it is subsumed by coreutils.info*. * lib/.cvsignore: Add Makefile.in, getdate.tab.h. Remove stat.c, sysexit.h. * m4/.cvsignore: Remove Makefile, dev-ino.m4, glibc2.m4, intdiv0.m4, inttypes-h.m4, inttypes-pri.m4, jm-glibc-io.m4, lcmessage.m4, lock.m4, printf-posix.m4, same-inode.m4, size_max.m4, uintmax_t.m4, ulonglong.m4, visibility.m4, xsize.m4. Many of these are put in automatically by ../bootstrap, but that's a bootstrap bug that I plan to fix shortly. * po/.cvsignore: More ../bootstrap-related fixes, plus remove old cruft. Add *.po, LINGUAS, Makevars. Remove *.cat, *.msg, cat-id-dbl.c, messages.mo, stamp-cat-id.
2006-08-21Remove from CVS, since the bootstrap script generates them automatically.Paul Eggert1-570/+0
2006-08-19.Jim Meyering1-1/+1
2006-08-17Add/fix copyright notices and adjust to latest GNU FDL.Paul Eggert2-0/+39
2006-08-15.Jim Meyering1-39/+46
2006-08-09Regenerate.Paul Eggert1-13/+15
2006-08-09Regenerate.Paul Eggert1-34/+36
2006-07-17Regenerate.Paul Eggert1-36/+35
2006-07-09Regenerate.Paul Eggert1-40/+62
2006-07-03* tests/Makefile.am, tests/*/Makefile.am: (TESTS_ENVIRONMENT):Jim Meyering1-1/+1
Add $VG_PATH_PREFIX as a prefix to $PATH
2006-06-30* tests/stty/basic-1: Work around an intermittent test failureJim Meyering1-1/+4
on HP-UX 11.11. Report and analysis from Bob Proulx. http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7475
2006-05-06.Jim Meyering1-2/+0
2006-03-26.Jim Meyering1-3/+4
2006-03-12.Jim Meyering1-6/+6
2006-02-20.Jim Meyering1-5/+7
2006-01-12.Jim Meyering1-5/+8
2006-01-04.Jim Meyering1-14/+14
2005-12-21.Jim Meyering1-1/+2
2005-12-17.Jim Meyering1-0/+1
2005-12-15.Jim Meyering1-3/+5
2005-12-03.Jim Meyering1-1/+0
2005-11-22.Jim Meyering1-0/+1
2005-10-23.Jim Meyering1-1/+2
2005-09-23.Jim Meyering1-5/+6
2005-09-22.Jim Meyering1-0/+8
2005-09-22Regenerate.Paul Eggert1-13/+16
2005-09-16Regenerate.Paul Eggert1-14/+7
2005-09-10.Jim Meyering1-0/+8
2005-09-09Regenerate.Paul Eggert1-8/+0
2005-09-04.Jim Meyering1-0/+8
2005-08-02.Jim Meyering1-23/+21
2005-07-12.Jim Meyering1-1/+1
2005-07-08Regenerate.Paul Eggert1-1/+1
2005-07-07.Jim Meyering1-5/+5