about summary refs log tree commit diff
path: root/src/librustpkg/testsuite
AgeCommit message (Collapse)AuthorLines
2014-02-02Remove rustpkg.Corey Richardson-468/+0
I'm sorry :'( Closes #11859
2014-01-29Removing do keyword from librustpkgScott Lawrence-4/+4
2014-01-23rustpkg::version: Remove enum Versionklutzy-4/+4
Currently rustpkg doesn't use SemanticVersion or Tagged, so they are removed. Remaining variants are replaced by `Option<~str>`.
2014-01-21Remove unnecessary parentheses.Huon Wilson-1/+1
2014-01-11Remove re-exports of std::io::stdio::{print, println} in the prelude.Brendan Zabarauskas-3/+3
The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using.
2014-01-05Fix some of the testcasesNiels langager Ellegaard-4/+4
simple-lib and deeply and c-dependencies still have problems. But they were nt caused by this pull request
2013-12-10Make crate hash stable and externally computable.Jack Moffitt-1/+1
This replaces the link meta attributes with a pkgid attribute and uses a hash of this as the crate hash. This makes the crate hash computable by things other than the Rust compiler. It also switches the hash function ot SHA1 since that is much more likely to be available in shell, Python, etc than SipHash. Fixes #10188, #8523.
2013-11-26librustc: Fix merge fallout.Patrick Walton-2/+2
2013-11-26librustc: Remove non-procedure uses of `do` from librustc, librustdoc,Patrick Walton-4/+4
and librustpkg.
2013-11-11Move std::rt::io to std::ioAlex Crichton-1/+1
2013-11-04Move io::file to io::fs and fns out of FileAlex Crichton-1/+1
This renames the `file` module to `fs` because that more accurately describes its current purpose (manipulating the filesystem, not just files). Additionally, this adds an UnstableFileStat structure as a nested structure of FileStat to signify that the fields should not be depended on. The structure is currently flagged with #[unstable], but it's unlikely that it has much meaning. Closes #10241
2013-11-03Fill out the remaining functionality in io::fileAlex Crichton-2/+2
This adds bindings to the remaining functions provided by libuv, all of which are useful operations on files which need to get exposed somehow. Some highlights: * Dropped `FileReader` and `FileWriter` and `FileStream` for one `File` type * Moved all file-related methods to be static methods under `File` * All directory related methods are still top-level functions * Created `io::FilePermission` types (backed by u32) that are what you'd expect * Created `io::FileType` and refactored `FileStat` to use FileType and FilePermission * Removed the expanding matrix of `FileMode` operations. The mode of reading a file will not have the O_CREAT flag, but a write mode will always have the O_CREAT flag. Closes #10130 Closes #10131 Closes #10121
2013-11-03Remove all blocking std::os blocking functionsAlex Crichton-6/+4
This commit moves all thread-blocking I/O functions from the std::os module. Their replacements can be found in either std::rt::io::file or in a hidden "old_os" module inside of native::file. I didn't want to outright delete these functions because they have a lot of special casing learned over time for each OS/platform, and I imagine that these will someday get integrated into a blocking implementation of IoFactory. For now, they're moved to a private module to prevent bitrot and still have tests to ensure that they work. I've also expanded the extensions to a few more methods defined on Path, most of which were previously defined in std::os but now have non-thread-blocking implementations as part of using the current IoFactory. The api of io::file is in flux, but I plan on changing it in the next commit as well. Closes #10057
2013-10-24Another round of test fixes and merge conflictsAlex Crichton-6/+9
2013-10-24Remove even more of std::ioAlex Crichton-6/+2
Big fish fried here: extra::json most of the compiler extra::io_util removed extra::fileinput removed Fish left to fry extra::ebml
2013-10-22rustpkg: Support arbitrary dependencies in the install APITim Chevalier-19/+136
api::install_pkg now accepts an argument that's a list of (kind, path) dependency pairs. This allows custom package scripts to declare C dependencies, as is demonstrated in rustpkg::tests::test_c_dependency_ok. Closes #6403
2013-09-26Update the compiler to not use printf/printflnAlex Crichton-1/+1
2013-09-25rustdoc: Change all code-blocks with a scriptAlex Crichton-3/+3
find src -name '*.rs' | xargs sed -i '' 's/~~~.*{\.rust}/```rust/g' find src -name '*.rs' | xargs sed -i '' 's/ ~~~$/ ```/g' find src -name '*.rs' | xargs sed -i '' 's/^~~~$/ ```/g'
2013-08-19rustpkg: Un-ignore most of the remaining testsTim Chevalier-1/+1
This necessitated some cleanup to how we parse library filenames when searching for libraries, since rustpkg may now create filenames that contain '-' characters. Also cleaned up how rustpkg passes the sysroot to a custom build script.
2013-07-24Change 'print(fmt!(...))' to printf!/printfln! in src/lib*Birunthan Mohanathas-1/+1
2013-07-17test: Fix tests.Patrick Walton-1/+1
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-2/+2
2013-07-13rustpkg: Address review comments from cmrTim Chevalier-1/+1
2013-07-13rustpkg: Implement `uninstall` and `list` commandsTim Chevalier-2/+8
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-2/+2
2013-06-25rustpkg: Begin allowing package scripts to call the default build logicTim Chevalier-6/+34
rustpkg/api.rs provides functions intended for package scripts to call. It will probably need more functionality added to it later, but this is a start. Added a test case checking that a package script can use the API. Closes #6401
2013-06-01rustc/rusti/rustpkg: Infer packages from `extern mod` directivesTim Chevalier-2/+16
This commit won't be quite as useful until I implement RUST_PATH and until we change `extern mod` to take a general string instead of an identifier (#5682 and #6407). With that said, now if you're using rustpkg and a program contains: extern mod foo; rustpkg will attempt to search for `foo`, so that you don't have to provide a -L directory explicitly. In addition, rustpkg will actually try to build and install `foo`, unless it's already installed (specifically, I tested that `extern mod extra;` would not cause it to try to find source for `extra` and compile it again). This is as per #5681. Incidentally, I changed some driver code to infer the link name from the crate link_meta attributes. If that change isn't ok, say something. Also, I changed the addl_lib_search_paths field in the session options to be an @mut ~[Path] so that it can be modified after expansion but before later phases.
2013-05-27Refactor core::run in order to address many of the issuesgareth-2/+2
mentioned in #2625. This change makes the module more oriented around Process values instead of having to deal with process ids directly. Apart from issues mentioned in #2625, other changes include: - Changing the naming to be more consistent - Process/process is now used instead of a mixture of Program/program and Process/process. - More docs/tests. Some io/scheduler related issues remain (mentioned in #2625).
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-1/+1
2013-05-15rustpkg: Reorganize test filesTim Chevalier-0/+0
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-2/+0
2013-04-24rustpkg: Correct directory structure in test scenariosTim Chevalier-6/+11
2013-04-22docs: Sketch out rustpkg manualTim Chevalier-21/+0
2013-04-18TidyTim Chevalier-0/+50
2013-04-17rustpkg: Add more testsTim Chevalier-0/+93
These are examples of what *should* work, and probably don't work yet.
2013-04-17rustpkg: Add a list of rustpkg commands that should passTim Chevalier-0/+35
This is a test file containing examples of commands that should succeed. When we write the test runner, we will have to figure out how to automate them.
2013-04-17rustpkg: Change this example to show how to do a custom buildTim Chevalier-0/+6
2013-04-17rustpkg: Remove bogus .rc fileTim Chevalier-25/+1
2013-04-17rustpkg: Implement clean; replace boolean result flags with fail!()Tim Chevalier-3/+6
1. Implemented the `clean` command 2. The methods implementing rustpkg commands all returned `bool`. Since most of not all of the error situations seem unrecoverable, I changed the methods to return unit (and also stubbed out several more methods that were assuming a package script existed, to be re-implemented in the future)
2013-04-17rustpkg: Add a few testsTim Chevalier-0/+161
There's no test runner for rustpkg yet; just sketching out a few basic test scenarios. pass/ contains packages that should compile successfully, whereas fail/ contains packages that should fail to build.