Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Lopez
QueryR
Commits
86e54f8b
Commit
86e54f8b
authored
10 years ago
by
Mick Jordan
Browse files
Options
Downloads
Patches
Plain Diff
test.native clean build fix; javadoc TestUserRNG
parent
ba9d43dd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
com.oracle.truffle.r.test.native/urand/src/Makefile
+4
-1
4 additions, 1 deletion
com.oracle.truffle.r.test.native/urand/src/Makefile
com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/rffi/TestUserRNG.java
+7
-1
7 additions, 1 deletion
....test/src/com/oracle/truffle/r/test/rffi/TestUserRNG.java
with
11 additions
and
2 deletions
com.oracle.truffle.r.test.native/urand/src/Makefile
+
4
−
1
View file @
86e54f8b
...
...
@@ -37,13 +37,16 @@ endif
INCLUDE_DIR
:=
$(
subst test.native,native,
$(
TOPDIR
))
/include
all
:
$(C_OBJECTS)
all
:
mkbin
$(C_OBJECTS)
ifneq
($(shell uname), Darwin)
gcc
-fPIC
-shared
-o
$(
C_LIB
)
$(
C_OBJECTS
)
else
gcc
-dynamiclib
-undefined
dynamic_lookup
-o
$(
C_LIB
)
$(
C_OBJECTS
)
endif
mkbin
:
mkdir
-p
$(
BIN
)
$(BIN)/%.o
:
%.c
gcc
-I
$(
INCLUDE_DIR
)
-fPIC
-O2
-c
$<
-o
$@
...
...
This diff is collapsed.
Click to expand it.
com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/rffi/TestUserRNG.java
+
7
−
1
View file @
86e54f8b
/*
* Copyright (c) 201
3
, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 201
4
, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -27,8 +27,14 @@ import java.nio.file.*;
import
org.junit.*
;
import
com.oracle.truffle.r.runtime.*
;
import
com.oracle.truffle.r.runtime.ffi.*
;
import
com.oracle.truffle.r.test.*
;
/**
* Test for a user-defined random number generator. Implicitly tests {@code dyn.load} as well as the
* {@link UserRngRFFI} interface. We take care to use relative paths so the expected output file is
* portable.
*/
public
class
TestUserRNG
extends
TestBase
{
@Test
public
void
testUserRNG
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment