Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build/test fixes #39

Closed
wants to merge 2 commits into from
Closed

build/test fixes #39

wants to merge 2 commits into from

Conversation

vapier
Copy link
Contributor

@vapier vapier commented Dec 13, 2015

No description provided.

The [] characters are used for quoting in m4, so the attempt to use
them in place of `test` fails yielding the warning at build time:
.../flex/configure: line 20222: no: command not found
The current test wrapper works only when the inputs are specified using
relative paths.  If they're specified with absolute paths, the driver
fails to detect the inputs because it always prepends the input dir name
which itself is a relative path:
$ cd tests
$ ./testwrapper.sh -d . -i $PWD/reject.txt -t ./reject_ver.table
<fails to open inputs>

This normally doesn't show up because people run `./configure` or, for
out of tree builds, `../configure`.  But if you happen to run configure
with an absolute path, then automake tends to generate absolute paths
as well leading to test failures.

Fix all of this by dropping the implicit input directory prepending.
In practice, it doesn't even make sense:
- INPUT_NAME is often a list of files, not just a single one
- the input directory is used to find the testname tables which are
  usually generated, so it's impossible to use files from both source
  and build directories
- most of the time, the full/correct path is already specified
@westes westes self-assigned this Dec 13, 2015
@westes westes closed this Dec 14, 2015
@westes
Copy link
Owner

westes commented Dec 14, 2015

Thanks for this. It's now in master and will be pushed to origin after reviewing other outstanding pr's.

eric-s-raymond added a commit to eric-s-raymond/flex that referenced this pull request Sep 25, 2020
I did some indentation of the end-of-file case statements with tabs to
make the generated code a bit more readable.  So there are trivial
whitespace diffs in generated code.

westes#39 in the retargeting patch series
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants