Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

Commit

Permalink
Move pcre-test.rs to tests.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
uasi committed Apr 5, 2013
1 parent 46216bd commit 71938ac
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -8,8 +8,8 @@ build: $(SOURCE)
$(RUSTC) $(RUSTC_OPTS) --lib pcre.rc

test: clean build
$(RUSTC) $(RUSTC_OPTS) -L . --test test-pcre.rs
./test-pcre
$(RUSTC) $(RUSTC_OPTS) -L . --test pcre.rc
./pcre

clean:
rm -rf test-pcre *.dSYM *.dylib *.so
rm -rf pcre *.dSYM *.dylib *.so *~
3 changes: 3 additions & 0 deletions pcre.rc
Expand Up @@ -9,3 +9,6 @@

pub mod pcre;
pub mod consts;

#[cfg(test)]
mod tests;
13 changes: 6 additions & 7 deletions test-pcre.rs → tests.rs
@@ -1,5 +1,4 @@
extern mod std;
extern mod pcre;

#[cfg(test)]
mod test_util {
Expand Down Expand Up @@ -96,9 +95,9 @@ mod test_util {

#[cfg(test)]
mod tests {
use test_util::*;
use pcre::pcre::*;
use pcre::consts::*;
use super::test_util::*;
use pcre::*;
use consts::*;

#[test]
fn test_compile() {
Expand Down Expand Up @@ -236,9 +235,9 @@ mod tests {
}

#[cfg(test)]
mod test_match_extensions {
use test_util::*;
use pcre::pcre::*;
mod match_extension_tests {
use super::test_util::*;
use pcre::*;

#[test]
fn test_group() {
Expand Down

0 comments on commit 71938ac

Please sign in to comment.