Files
libgit2/tests
nulltoken 4cc71bb7fb tests: Add "describe" test repository
Built with the following script:

	#!/bin/sh

	test_tick () {
		sleep 10
	}

	test_tick &&
	echo one >file && git add file && git commit -m initial &&
	one=$(git rev-parse HEAD) &&

	git describe --always HEAD &&

	test_tick &&
	echo two >file && git add file && git commit -m second &&
	two=$(git rev-parse HEAD) &&

	test_tick &&
	echo three >file && git add file && git commit -m third &&

	test_tick &&
	echo A >file && git add file && git commit -m A &&
	test_tick &&
	git tag -a -m A A &&

	test_tick &&
	echo c >file && git add file && git commit -m c &&
	test_tick &&
	git tag c &&

	git reset --hard $two &&
	test_tick &&
	echo B >side && git add side && git commit -m B &&
	test_tick &&
	git tag -a -m B B &&

	test_tick &&
	git merge -m Merged c &&
	merged=$(git rev-parse HEAD) &&

	git reset --hard $two &&
	test_tick &&
	echo D >another && git add another && git commit -m D &&
	test_tick &&
	git tag -a -m D D &&
	test_tick &&
	git tag -a -m R R &&

	test_tick &&
	echo DD >another && git commit -a -m another &&

	test_tick &&
	git tag e &&

	test_tick &&
	echo DDD >another && git commit -a -m "yet another" &&

	test_tick &&
	git merge -m Merged $merged &&

	test_tick &&
	echo X >file && echo X >side && git add file side &&
	git commit -m x
2014-04-30 09:31:58 +02:00
..
2014-04-02 18:50:47 +02:00
2013-11-14 14:05:52 -08:00
2014-04-14 16:16:22 +02:00
2014-04-02 18:50:47 +02:00
2014-04-11 21:55:36 +02:00
2014-04-07 21:09:09 -07:00
2014-04-17 14:43:45 -07:00
2014-04-11 22:48:42 +02:00
2014-04-25 15:49:58 +02:00
2014-03-31 15:15:32 -07:00
2013-11-14 14:05:52 -08:00
2014-04-17 15:04:42 -07:00
2013-11-14 14:05:52 -08:00
2014-04-02 18:50:47 +02:00
2014-04-02 18:50:47 +02:00
2013-11-14 14:05:52 -08:00
2014-03-28 10:39:15 -07:00
2013-11-14 14:05:52 -08:00

Writing Clar tests for libgit2

For information on the Clar testing framework and a detailed introduction please visit:

https://github.com/vmg/clar

  • Write your modules and tests. Use good, meaningful names.

  • Make sure you actually build the tests by setting:

      cmake -DBUILD_CLAR=ON build/
    
  • Test:

      ./build/libgit2_clar
    
  • Make sure everything is fine.

  • Send your pull request. That's it.