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

Port to glib-tap.mk #76

Closed
wants to merge 3 commits into from
Closed

Port to glib-tap.mk #76

wants to merge 3 commits into from

Conversation

cgwalters
Copy link
Member

Unfortunately, this involved hacking it up a bit:

  • I couldn't easily use nobase for the data, so I deleted that.
    Test data goes in the installed-tests dir.
  • Delete duplicated predeclared variables; we're using nonrecursive
    make.

@mbarnes
Copy link
Contributor

mbarnes commented Dec 18, 2014

Ack - reviewing, may take me a little while.

@mbarnes
Copy link
Contributor

mbarnes commented Dec 19, 2014

This testing framework is new to me, so not much insight here from a review standpoint. For the pasted files I really only examined the differences from GLib's copy.

For those pasted-in files, I suggest for the record noting their origin at least in the commit message. I've used as-compiler-flag.m4 myself before. I assume most of the glib-tap stuff originated in GLib? tap-driver.sh looks like it comes from the automake project?

The JSON unit tests look fine to me.

Not actually used yet; we'll need to modify these in subsequent
commits, but this is the starting point.  Future commits will
therefore have a useful diff.  Even if admittedly it's unlikely
they'll re-unify in the near future.
These files were taken from json-glib, around the era of this commit:

https://git.gnome.org/browse/json-glib/tree/build/autotools?id=2779d537492f1902d71cf648631238110b62b311

Unfortunately, this involved hacking it up a bit:
 - I couldn't easily use `nobase` for the data, so I deleted that.
   Test data goes in the installed-tests dir.
 - Delete duplicated predeclared variables; we're using nonrecursive
   make.
 - Ensure we run each test in its own tmpdir
Adding some basic coverage of the json parsing.
@cgwalters
Copy link
Member Author

OK, I split out "copy the files unchanged" as a separate commit and more clearly recorded their provenance from json-glib.

Also dropped as-compiler-flag.m4 since we weren't actually using it.

@mbarnes
Copy link
Contributor

mbarnes commented Dec 19, 2014

Nice, I like that -- clean import in one commit and changes in the next.

👍

@cgwalters
Copy link
Member Author

Merged, thanks!

@cgwalters cgwalters closed this Dec 19, 2014
@cgwalters cgwalters deleted the wip/tests branch December 19, 2014 15:48
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