forked from kazuho/cppref
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kazuho Oku
committed
Oct 8, 2009
1 parent
0cdefb1
commit e0d80ea
Showing
3 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use inc::Module::Install; | ||
|
||
name 'cppref'; | ||
all_from 'cppref'; | ||
readme_from 'cppref'; | ||
|
||
no_index 'orig'; | ||
|
||
configure_requires 'Module::Install::ReadmeFromPod'; | ||
configure_requires 'File::Slurp'; | ||
requires 'File::ShareDir'; | ||
|
||
install_script 'cppref'; | ||
install_share 'doc'; | ||
|
||
auto_include; | ||
auto_install; | ||
|
||
WriteAll; | ||
|
||
do 'tidy.pl'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use strict; | ||
use warnings; | ||
|
||
use Test::More tests => 7; | ||
|
||
is(system("blib/script/cppref > /dev/null"), 0, 'top page'); | ||
is(system("blib/script/cppref stl::vector::push_back > /dev/null"), 0, 'exact path'); | ||
is(system("blib/script/cppref stl/vector/push_back > /dev/null"), 0, 'exact path using slashes'); | ||
is(system("blib/script/cppref stl > /dev/null"), 0, 'dir'); | ||
is(system("blib/script/cppref faq > /dev/null"), 0, 'search'); | ||
is(system("blib/script/cppref hokhokhok > /dev/null 2>&1"), 256, 'not found'); | ||
is(system("blib/script/cppref push_back > /dev/null 2>&1"), 512, 'multiple choices'); | ||
|